package com.smtlive.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smtlive.domain.User;
import com.smtlive.repository.UserRepository;
import com.smtlive.repository.UserRoleRepository;
import com.smtlive.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	private Logger logger = LoggerFactory.getLogger(this.getClass());

	@Autowired
	UserRepository userRepository;
	
	@Autowired
	UserRoleRepository userRoleRepository;

	/* (non-Javadoc)
	 * @see com.smtlive.service.impl.UserService#findAllUser()
	 */
	@Override
	public Iterable<User> findAllUser() {
		logger.debug("Sample Debug Message");
		logger.trace("Sample Trace Message");
		return userRepository.findAll();
	}
}
